/**
 * @Description:
 * @author zhaokai
 * @date 2019/12/27
 */
let path = require('path');
let fse = require('fs-extra');

// console.log(path);
console.log(__dirname);
//path => join 用于连接路径
let filePath = path.join(__dirname,'../path.js');
console.log(filePath);
console.log(path.isAbsolute(filePath));
//path => resolve 用于返回绝对路径
let filePath2 = path.resolve( '../path');
console.log(filePath2);
console.log(path.isAbsolute(filePath));

//注：两者区别resolve以当前目录为基础 而path则没有